<script setup lang="ts">
import Header from '@/components/Header.vue'
import { useUserStore } from '@/stores/userStore'

const userStore = useUserStore()
</script>

<template>
  <el-container>
    <Header v-if="userStore.isLoggedIn" />
    <el-main>
      <router-view />
    </el-main>
  </el-container>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}

.el-main {
  padding: 20px;
}
</style>
